Solving multiple connection bug. Making the constraint on a linear flow tighter