Fixed bugs of category