block undo when there's no move to undo