Fixed undo command for delete