Fixed logfile output