fix browser refresh