Fixing a bug where the wrong unit would show up when doing some conversion