Fix for duplicate characters