Correct an optional parameter for setThreshold method.

It was enbugged by 88320a57edbf31750904330c93bd2014c964db59.