fix local storage storing/loading