Fix a bug of set-selected-day.