It looks like errors are coming from indexing into IntPts matrices when resetting residual values