fixed double reading from closed channel.