[fix bug 1030673] Fix common skills calculation for each group.