End repeat before instrument change

At the end of a repeated section, if I do an instrument change that changes the number of staves, the end repeat barline appears at the start of the new instrument, rather than at the end of the previous instrument. This doesn’t look correct to me - is this a bug, or am I doing something wrong?
Capture.JPG
By the way, while I’m here, can I just say how great instrument changes are, and how easy they are to work with? :smiley:

Neil

The barline is drawn as part of the new instrument, rather than the old. I’m afraid there’s nothing you can do to influence that.