Fixed and error which added the units to the list containing the units
to add.