fix add file header bug