P2P: Fix the calculation of group common freqs