Fix array creation