fix grid submission script