fix rev in localstorage