fixed re-creating window-sized buffers only if window size has changed