Fix groupes and classes problem foreigne key