Update metrics module with bug fix