Fix a bug where we would always be profiling