insert mapped list items at the correct index

Line 90 says: // The indices in the mapped list are the same so lets just splice it out

Which is wrong without this fix, as items are always added to the end of the list.