fix small bug in item stacking.