Fix pb with maxTextLength