fix for custom error metrics on category fields for anomaly models