adapt to agm, fix dep nvd3