fixed a minor bug with ad deletion