Fixed compiler problem with material

Signed-off-by: timstans <dj-t@home.nl>