fix bad headers