fix a bug for adding the same activity for a different date.