fixed a framebuffer overflow