Fix issue when adding items