fixed category parsing bug