fix foreach on childNodes