Fix crude math