Ah, my bad; the +1 on the line previous was holdover from some modified code I was using before the vault update. The fix is to remove the +1, or to decrement the additions in the splice by 1 each.