fixed the delete action