Fixed bug with Material number