fix a bug for archer ai