Fix destroying item stacks when clearing inventory