logfile bugfix