not resizing frame buffer to current size