Fix : on initial start, localstorage is null, not undefined