Undo for a dead end implemented.