Fix metric datapoints bug