Bug fix for IOT thresholds