fixed rotating bug