fix for termination condition bug in SPARS2. closes #98