Fixed a fatal mistake in stream::_read