Fixed a bug that is ganna occur when no item is stored