fix for duplicate 'allowed'.
end
else
field.allowed = field.allowed or {}
+ if field.allowed[value:lower()] == nil then
table.insert(field.allowed, value)
field.allowed[value:lower()] = value
end
end
+ end
