pallet undefined in stats