fixed loading from inventory