fixed a bug where package metrics would cause the analysis to crash