Added check for wrong Profiler class