bug fix in categories