metric categories bug fix