Fix illegal access to memori in framebuffer map