fix hang on empty metrics