Fix the bug when no local storage date is present