fixed undo delete error