fixed getcategory