Fixed check for the same mother of the particles with highest energy.