small bug fixed in metrics