fix get Referer query bug