fix double header bug