fix generateGridDesign