Get material from config properly