Foreach loop - typos