*8996* Porting stats fixes

Unused $index