fixed bug in compileapp models_to_run, thanks Anthony