Barlines between 2 percussion parts changing instruments

Hi there, my two percussion parts (as they are one instrumental group) have barlines running between the two staves (see picture 1), but as I change instruments on one part (in this example, to a melodica, moving from percussion clef to treble) the barlines connecting the two parts disappears (see picture 2), is there a way to remedy this? Thanks for any help!

1

You changed from a non-pitched to a pitched instrument. Not an easy way to connect the barlines in such cases.

Try adding a bracket in Engrave mode.

This may be helpful:

Perfect, thank you!