bug fixed: repeat materials