Fix utterly ridiculous bug in stats