Wrong postion of a clef, jumping clefs

At the foto (left hand, end of the staff) the bass clef should be before the dotted barline. While editing this score sometimes the clefs are jumping between before and after the dotted barlines (this happens not only at the end of a staff).

Can you cut down the project to the smallest example that reproduces the problem and attach it here? Thanks!

Sorry, after cutting down it’s not reproducible. I will try it tomorrow again. Otherwise I send you via email the whole project.

I sent you via email an example.