workaround destructor problem