Fix underflow on unit magnitude.

Fixes #2.