fix wndx bug