Fixing creation of Category from a string