fixed issue with profiler.