fix local storage