Some small fixes in datepicker