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

I think `if skills_id` is not needed anymore.