fix maxlength on settings