fix bug for meterial module