fixes datepicker for both fields