Fix grouping bug with nils when using slice groups