Tiny bugfix for get_matching_groups API method