fixed inflow bug obstacle