fixed bug for categorys