fixed bug in metrics file parsing