Applied Carsten's fix for the trlog.