Fix the delete method