Fixed double rotation bug