fixed issue when using incredibly small text.

Was caused due to rounding errors.