Stats window fix

Fixes the Statistics window