Fixing issues with character count