Fixes #12: Corrected bugs in group_manager implementation.