fix the coredump bug cause by file->log