fix boundary check in fresolve