fix incorrect port of selecting a table item