Use numeric id instead and allow to assign only id for material