Changed return value of get_bad_groups