fix of the extrapolation boundary condition