Fixing boundary condition