Fixed a bug that was caused the max_group_size parameter to be ignored