Revert "fix issue with inserting at end causing path map updates beyond intended index"

This reverts commit b2f0bce7bd6d7c6908ea85421bb6ca9eb414aa8f.