prevent foreach bug

I update foreach doc.