Fix remove empty groups sample