Fixed check on agreement.