Fixing potential chunkloading crash.