fix datepicker activation