fix local storage variables