Fixed a math error