Bug Fix on Terrain Generation.