fix framebuffer allocations

Change-Id: I6c311b7fc816d77f336997a6e37bb3246ef05a9a