Fix framebuffer issue