Index: /issm/trunk-jpl/src/c/Container/Observations.cpp
===================================================================
--- /issm/trunk-jpl/src/c/Container/Observations.cpp	(revision 14238)
+++ /issm/trunk-jpl/src/c/Container/Observations.cpp	(revision 14239)
@@ -148,7 +148,13 @@
 		observation=dynamic_cast<Observation*>(this->GetObjectByOffset(indices[i]));
 		h2 = (observation->x-x_interp)*(observation->x-x_interp) + (observation->y-y_interp)*(observation->y-y_interp);
-		if(h2<hmin2){
+		if(i==0){
 			hmin2 = h2;
 			index = i;
+		}
+		else{
+			if(h2<hmin2){
+				hmin2 = h2;
+				index = i;
+			}
 		}
 	}  
