Fix stats export