Fixed return type of get_bad_groups
Version up to 6.0