Fix deadlock when there are multiple inputs to simulation.
Fix queue full signal.