fix incomplete framebuffer bug