Fix case the number of rows is not enough