Fix bug duplicate characters