Limit number of dot threads

Previous commit missed commit of dot.
we need a minimum and maximum value in case of an int field.