corrected bug showing ads to logged-in users