fix windows app quit crash this is a stupid mistake