fix bug where units with negative exponents where not handled correctly in unit conversions