shan chen model boundary condition

I am trying to change the multicomponent2D example to one with flow, which means there will be one inlet and one outlet.
I have one problem defining the inlet. However, when I try to define the outlet. The result is wrong with average density = NaN

Have anybody met with such problem? I would appreciate if you could give me some suggestions.