fixed inventory issues