Fixed problem with start/stop of the profiler