Correct maximum size for stream.