Fix profiling