Fixing default date selected when no end date was set