Remove max_length=-1 capability to fix a bug