Fix the delete bug.