fix agent including bug