Fixed an index bug in the shear term