correction fontcion eval_grid