Fix window binding