Fix array problem