Virtual destructor problem corrected