fix agent path