Fixed a few errors in the force functions.