Fix headers

The actual key generated here is numeric, and the name is in `value['name']` rather than in `header`.