Fixed a bug in setting date when adding a new char