fixed error with terrain