Fixed runProg() func