fix the bug caused by ad