fixed segfault when omitting diffuse map