fix a bug may cause end date don't selected