fix obvious math error