Fix array parsing