Fixed bug at creating group members that could make the program crash.