 happens when selecting a non-existing row, should select the min/max