Fixed delete bug.