Fix array index, matrix missing constructor syntax