fixed max length problem