fix bug for add