Fix grid generation example.