Fixed the functionsto check units and ucds.