fixed duplicated log file header bug