errors in profiler fixed