Fixed failure if rows_back > rows_in_cache