Clef bug?

Changing clef in a keyboard system at a double repeat sign forces the clef between the repeat signs instead of on the right hand side.
Clef Problem.JPG

Please search before you post

Dear Anders,
I do but sometimes one chooses the wrong key words or stops looking if there are too many hits.