fix maxlength