Fixed some indexing problems with the CIEMesh class.