Fix utils getTheLostDates logic error