localstorage is getting data, but not the right data