fix parse headers