fix bug add method