fixed the inconsistent label issue after merge the equivalent class nodes.