fixing validation bug in AGREE