fix error in function getCustomValueTableElement