Fix issue of getting similar materials