fix datepicker rendering