Small diff in ObjectFactory