Fixed a math error.