Corrected tablescan