fixed non-creation of logfile