fix material callback