Fixed bug in rotation handler