Fixed undo erase.