Height grid generation fixed (it was crashing with a 1x1 grid)