Initialize array correctly