Remove unused variable. Fix Terrain Lua binding.