Fixed bug when pushing or pulling items.

Signed-off-by: Zyk <zyk6870@gmail.com>