fix bug in getUnit