Correcting the infinite loop on groups <-> users relation