Unit conversion bug fix.