Fix a strange worldgen crash