Fixed race conditions

- Made send/recv channel generators