Avoid writing on inactive channels - should solve #1