Removed warnings from Material.