fixing index for grid numbering in multiple jobs