Added error message for undefined category/or value