Fix date-picker not picking up dates from backend