Fix darkness crash.