Fixed a bug where the second buffer in an array of two buffers may be ignored if the first buffer is empty.