Fix fromArray syntax error