Fix how you code inventory

Fix how you code inventory