fix to table selection syntax