fixed selection of table