Fix rotate method