Fix for profiler registration.