Fix error on custom dimension/metric example