fix for empty groups