Fix a bug in the run helper