Fixed load error if localStorage is empty