edited editAd bug