Fix annoying rotation bug