added code to color lbl-categories (when invalid)