Fixing window bug.