Fix Agent config issue