modify for blank referer issue