Ensure type for headers array; fix