Fixed a bug in buildCObjects.