Fix bug with loading from empty local storage