small fix in isInHighlightedDates function