*8996* Porting stats fixes

Whitespace after foreach.