Fixed an error in units.lua.