Solve stupid math errors in example