fixed bug in index counts