Fixed potential logfile-related crash