fixing strange scoping issue in agree