fix bugs that agentinfo data can not save