Question on brackets/barlines for grand staff

If you’re still having problems with this, please cut down the project itself to the minimal material required to reproduce the problem, then attach it here. It’s much easier for us to help if you attach a project.