finally fix the delete