minor fix on stream and ring