Fixing issue #91: duplicate records on inventory