Fixing bug in InStreamBuf.