fix the delete problem