Fix various streaming issues.