fix for empty local storage