Shorten the ID of materials