Fix window bug.