fix wndx and drag