fix deleteObject