diff --git a/PacketLib.xcodeproj/project.xcworkspace/xcuserdata/bulgarelli.xcuserdatad/UserInterfaceState.xcuserstate b/PacketLib.xcodeproj/project.xcworkspace/xcuserdata/bulgarelli.xcuserdatad/UserInterfaceState.xcuserstate
index 523a950e88b6efed08576183e464261397997481..bd293efd0c44e66f9fdc8a0f1a31eb8b6316d253 100644
Binary files a/PacketLib.xcodeproj/project.xcworkspace/xcuserdata/bulgarelli.xcuserdatad/UserInterfaceState.xcuserstate and b/PacketLib.xcodeproj/project.xcworkspace/xcuserdata/bulgarelli.xcuserdatad/UserInterfaceState.xcuserstate differ
diff --git a/src/PartOfPacket.cpp b/src/PartOfPacket.cpp
index 533e15d9974d093d19aa4ef7e6b6424995e1af5f..7673ad36158a92f9a1487f369806908d264cf372 100644
--- a/src/PartOfPacket.cpp
+++ b/src/PartOfPacket.cpp
@@ -726,7 +726,7 @@ word PartOfPacket::getFieldIndex(string fieldname) {
 	for(word i=0; i<numberOfFields; i++) {
 		Field* f = fields[i];
 		string fname = f->getName();
-		if(fieldname == fname)
+		if(fieldname.compare(fname) == 0)
 			return i;
 	}
 	string errorStr = "getFieldIndex("+fieldname+") error: no field found in section '"+popName+"'";