fixed a bug that the comparison action was inversed from the user interface