Bug fix in updateDisplayUnits