Delete method bug updated