Fix some bugs in grid roads generator.