Prevent errors on referral page