prevent crash if referer is not github