some framebuffer fixes