corrected issue with inventory duplication