fixed a bug in models_to_run, thanks Anthony