Bug fix in log-file setting