Threshold.cpp fix.