fix bug for autodeal