fixed issue 1312, issue on iOS in FrameBuffer