maxLength support fixed