fix TableWidget row selection bug