Fixed minor bug with referrer system