fixed the browser can't refresh issue