fix insert max length