bug fix in category tracking