Fixed the terrain loading bug.