delete indexes, fix counters bug