fix use of material.core