fix agent launch