Fix, to set the endpoint in the grid