logfile bug fixed