fixed bug in parting of channel