minor bug fix regarding log file