Fix bug in units.