Fixed a bug that stack item lost.