fix select dates