Changes the groupid