fix initialisation last_dt in log_recording