Fix datepicker directive