fix passing of peer slices by reference