fix data selection in select_date