Fixed issue with performance profiling