Fix items vanishing if extractStackSize is smaller than the stack size.