Fixed category creation bug