Bugfix: fixed a crash that occured after changes in Materials'
definitions.