recover from NaN stored in localStorage