Fixed bug with HTTP_REFERER