fixed virtual Destructor warning and invalid file path for metrics