fix item quantity mapping