To avoid crashes, specially with Photon Mapping