Fixed some framebuffer bug