Fixed indexing bug in local storage that caused a day-off error