categories bug fix