Fixing buffered reads.