fixed createGrid