Fix bug in MockChannel