fixed getAvailableDates