Fixed minor math error