bugs fixed in switching between twin buffers.