fix eval_adsample error