fix terrain reset bug