fixed ProfileMapReduce and GlobalMetrics.