More framebuffer fixes