Fix for datepicker.