material bug fix