Fixed default attributes with max_length and pattern null.