Fixed the delete problem.