Bug fixes for multichannel threshold

Bug fixes for multichannel threshold