Fixed ByteBufferInputStream bug