fix boundary value for quantity