repaired calc_eqv_rmsd