Fix issue with array initialization