fixed attaching to the profiler event