getCurrentDates bug fixed