Fixed bug in ThresholdLayer