avoid infinite recur on slice