bugfix classdistribution