Fix datepicker element not found