Fixed missprints in foreach syntax