Fix the non-deterministic infinite loop in the multiplexer.