Fix obsolete snippet in RunAllObjects().