correct incorrect use of typed channels