Strange behaviour setting pinMode by array

Just tried it with that line removed. Worked perfect. That was it. Thank you !