Fix the edit material button