diff --git a/lib/grp.gi b/lib/grp.gi index d892538c313..7660f201064 100644 --- a/lib/grp.gi +++ b/lib/grp.gi @@ -2932,7 +2932,7 @@ InstallMethod( HallSubgroupOp, for p in pi do AddSet(smallpi, p); S := ClosureSubgroupNC(S, SylowSubgroup(G, p)); - SetHallSubgroup(G, smallpi, S); + SetHallSubgroup(G, ShallowCopy(smallpi), S); od; return S; end );