Minor math fixes.