Fix timeline calculations.