fixed bug in Categories