fix a numerical problem, but tool is still jittery