JH bugfix for slices