fix bug in comparator
fix string io exception
fix compartor error