Re #417. A solution to the errors in moving items around in a bag that gets smaller.