Fix bug when canceling adding a new characteristics.