Fixed some issues with Framebuffer