fix array of scalars