bugfix for run program window closed with empty string
bug fix for window minimization issue, fixed similar issues