fix referrer setting error.