Fixed a bug in add new char