Terrain working with some wrong cases. Dont know why. But no loop.