Fixed another bug in the unit converter