Fixed warning in Component.iterator() method