fixed next agent selection