Fixed bug with units in denominator not having inverted conversion factors