fixed validation check of thresholds