Fix inventory management