Fix inventory tracking