Switch id field to material.