Avoid current_row index out of range