refs #1567 freach -> foreach