Fix item quantity not resetting bug