inventory build fix