fix a bug in set_adgroups pagination