Fix bugs for windows to start app