fix bug in thresholdCheck when updating metric definitions