Fixed a stockpile bug involving taking extra items.