fixed rotation bug when buttons enabled