correct value check in template for category registry