bug fix: category code must not be null