fix complex header