Fix for duplicate entries in product and sub materials