Fixed possible http_referer missing bug