Fixed warnings when assigning arrays to scalars