fixed bug related to double header