state: fix update_framebuffer