fix local storage save, global have issue with saving, data is empty