fixed inventory problems