fix advertisement bug