fixed agent registration bug