Fixed can't update because browser is refreshed before request send to server.