Fix setting the new row of a replaced widget