fix agent crash