fixed wrong datatype for default tolerance
fixed a situation which would allow exploiting error messages to discover correct choice answer