fixed incomplete typo undoing