fixed bug in processing non existant headers