require terrain bug fix