Fix problem with time adaptivity.