Fixing issue with collecting profiling data