Fixed issue when the referer was null