Fix bugs causing cumulative strain computaiton errors.