Fix profiling script.