Fix datepicker. When it's opened, date is set to values