fix ruby `each_slice` can't trigger