fixed rapid rotation issue