fixes for max chars