fix output for has_group too