Fix stats bug