Fixed some silly bugs related to creation of piped channel.