Fix bad math