fix bug of adding item