fixed dumb error in learn_AGGs()