Fix error code on launchProgram