fix to the spring gradients
Merge pull request #624 from blandry/springgradfix

Fix to the spring gradients