Bugfixes to profiling.