Fixed delete method.