Strange behaviour setting pinMode by array

PINS [8] is 10