fix issue with datepicker in modals (no question asked)