fixing value generation according to the policy when minLength == 0