Turn profiling off; bug fix when profiling disabled