fix for all empty arrays in folded while slicing