fixed a Math problem