fix for slicing to avoid double slice.