some fixes to framebuffers objects