fix boundary value