fixed the grid creation size