Fixed for new advert code