fixing consistency check in agree