Fixed rotation range bug