select_rows_fix