Correct a bug with delta t calculation, caused by a bad initialisation.