Fix scoping issue for stats