Bugfix peak output into logfile