Fixed category creation check.