correct math error