Impression problem fix

This patch fixes a problem with ad impressions