fixed rotation bug