fixed a bug cannot re-launch closed program/app