Fix array_flip warning