Fix disable profiler function