Fix is-channel and is-pipe.