Yeah that's why. You change the sublist, which triggers your function, which adds a new line, which changes the sublist, which triggers your function, which finds the same
warrantyLine
, which adds a new line, which changes the sublist, which adds a new line...........