Fixes setSelectedDate