Fix a bug in macrorun perf.