fix no date selection causing error