Fixed table selection bug.