fix for non-rewrited rewrited grids