fixed category creation bug --KW