Fix statistics output with tags