Fix for empty localstorage