Fix calculation of change vectors.