Fix Framebuffer errors