fix inventory load