fix no-selection bug in table