Fixed math error