Terrain bugs fixed