fixed Material bug