Correct bugs to assign role and join in group.