Fixed header bug in log output