Fixed a slight math error