Fixed terrain edit bug