fix bug
object and Terrain struct -> enum.