Fixed new category assignment issue.