fixed velocity boundary condition bug