fix for number of classes when metrics are not there - UNTESTED