Rotating hinge joint over 180° with angular limit

When rotating a hinge joint with angular limit it will flip at 180° around the rotation anchor point. On the start object (pentagon) is a script attached.

           rigidbody.moveRotation(Time.time * 100);

Is there a solution to this problem?
The the rotation of the start object switches from 180 to -180. It’s maybe a direction for a solution


I really don’t know what the problem was, but when i created new objects the problem was gone.
Maybe it was because the old objects where instances of a prefab but i broke up the relation.

thanks for help and inputs.