Fixed framebuffer not resizing properly