fix some regression in framebuffer modes