fix error in profiler