Fix grid_name variable