fix category creation bug