Fixed a crash-on-world-generation bug.