fix repeater bug in materials edit