Update the capture index to correctly match it's index in the supplied source.