ND2: prevent exception when parsing the gain value