Wrap grid to get rid of warning about _replace.