selected date fix