Fixed broken encoding of single-value element