Fixed some bugs in program launching calls and UI.