Fix the problem that main agent existing in agent list