maxlength tweak