Fix for compare.character