Keychange removes barline

Hello friends,
When adding a keychange in the example attached Dorico makes one barline invisible.
How do I avoid that - and why does it to it in the first place?
Thank you.

I’m not entirely sure what you’re asking, Torben? Are you able to attach a project that exhibits the problem, or some steps to follow?