Handle toRender parameter in the correct way.