fix parmgridgen