Fix encoding of elements with min = max = 1