Profiler errors fixed