Fixed bug in user joining groups.