Fix rotate function