fix a bug of compare exception
fix sentence comparation