It's a problem with your setup, the game is supposed to behave like that.
The problem is that the rail rotators can only be set at 45 degrees , (45,90,135,180, and so on).
You need to make sure that the rail piece is able to be locked at the 45 degrees.
The way you set your rotator to stop...