profiling: fix broken profiling regression