Fixed bug in logfile handling