Bug in Profiler class