Moves the rotate cancel code

At PL's suggestion