Fix single-window bug.