Bugfix for metric.collect