Logfile bugfix