fix inventory setup