Fixed not working with some inventories