Fix the context roots substitution in the Grids.