Fixed assignment of connection on streams