fix ag search