Fix inventory generator.