fix a bug about ad