fix ad block logic