bug fix on material and method

bug fix on material and method