Fix local stream for agent.