Fixed request referer bug.