Fixed rotation bug