fix metric analyzer bug