Fix window buffer.