Don't set maxlength to 0 if none is provided