Fixed some more math/physics errors.