Fix rotate event