fix duplicate headers