fixed bug in category routing