fixed typo/bug  

unit to units. before it tries to lookup the dict incorreectly and raises a "unit not global" error.