Fix rotate cube method