Fixing bug when full InStreamBuf is full.