Fixed save to local storage