Corrected “foreach” mistake.