fix warning when selected day is nil