fix profiling