Fixed bug affecting stats