Index: /issm/trunk/src/c/objects/Elements/Tria.cpp
===================================================================
--- /issm/trunk/src/c/objects/Elements/Tria.cpp	(revision 8974)
+++ /issm/trunk/src/c/objects/Elements/Tria.cpp	(revision 8975)
@@ -4139,11 +4139,11 @@
 
 			if (code==5){ //boolean
-				this->inputs->AddInput(new BoolInput(vector_enum,(bool)vector[i]));
+				this->inputs->AddInput(new BoolInput(vector_enum,(bool)vector[index]));
 			}
 			else if (code==6){ //integer
-				this->inputs->AddInput(new IntInput(vector_enum,(int)vector[i]));
+				this->inputs->AddInput(new IntInput(vector_enum,(int)vector[index]));
 			}
 			else if (code==7){ //double
-				this->inputs->AddInput(new DoubleInput(vector_enum,(double)vector[i]));
+				this->inputs->AddInput(new DoubleInput(vector_enum,(double)vector[index]));
 			}
 			else _error_("%s%i"," could not recognize nature of vector from code ",code);
