math fix