modified and fixed the bug of showing index size