framebuffer bugfix