log module bug fix in file mode