adjusting the memory-index-max to help indexing issue.