Rotate objects around a common center

I am trying to rotate a number of objects around a common center with this code:


The screen looks like this:

All the brown objects should rotate around the centre of the square.
And it works. However sometimes the rotation fails to end at a right angle:

The problem seems to only occur when returning to 0 degrees!
How do I fix this?
I should also mention that the “CenterOfRotation” object always has the correct angle but the Brown bars “NewTiledSprite” instances end up at the wrong angle (I inspected thru the Debugger) - so it looks like the Stick somehow fails?

I guess sticker