fixed bug in DefinedTypeDetail on Saving a new DefinedValue