Bug fix in Height grid generation tool