Fixed editAd bug from artthik.