math error fixed