Fixed extra undo entries for changing inputs when deleting blocks